import { request } from '@/utils/request';

const Api = {
  List: '/task/order/list',
  add: '/task/order/batch',
  dictionaries: '/system/dict/data/type/task_status',
};

// 列表
export function getList(params: any) {
  return request.get({
    url: Api.List,
    params,
  });
}

// 批量操作
export function edit(data: any) {
  return request.put({
    url: Api.add,
    data,
  });
}

// 字典
export function getDictionaries(params: any) {
  return request.get({
    url: Api.dictionaries,
    params,
  });
}
